# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy

# 在售-二手房房源数据
class SellRoomDataItem(scrapy.Item):
    sell_id = scrapy.Field()
    province = scrapy.Field()
    city_name = scrapy.Field()
    area_name = scrapy.Field()
    shop_name = scrapy.Field()
    title = scrapy.Field()
    total_price = scrapy.Field()
    unit_price = scrapy.Field()
    community = scrapy.Field()
    house_type = scrapy.Field()
    floor = scrapy.Field()
    bullde_area = scrapy.Field()
    set_area = scrapy.Field()
    house_structure = scrapy.Field()
    bullde_type = scrapy.Field()
    house_face = scrapy.Field()
    bullde_structure = scrapy.Field()
    decoration = scrapy.Field()
    villa_type = scrapy.Field()
    Echelon_pro = scrapy.Field()
    elevator = scrapy.Field()
    listed_time = scrapy.Field()
    ownership = scrapy.Field()
    last_time = scrapy.Field()
    house_use = scrapy.Field()
    house_years = scrapy.Field()
    property_belo = scrapy.Field()
    mortgage_info = scrapy.Field()
    house_img = scrapy.Field()
    broker_id = scrapy.Field()

# 成交-二手房房源数据
class DealRoomDataItem(scrapy.Item):
    deal_id = scrapy.Field()
    province = scrapy.Field()
    city_name = scrapy.Field()
    area_name = scrapy.Field()
    shop_name = scrapy.Field()
    title = scrapy.Field()
    deal_time = scrapy.Field()
    deal_price = scrapy.Field()
    unit_pirce = scrapy.Field()
    listed_price = scrapy.Field()
    deal_day = scrapy.Field()
    adprice_num = scrapy.Field()
    carrylook_num = scrapy.Field()
    pay_numpeople = scrapy.Field()
    browse_num = scrapy.Field()
    house_type = scrapy.Field()
    floor = scrapy.Field()
    bullde_area = scrapy.Field()
    house_structure = scrapy.Field()
    Inside_area = scrapy.Field()
    bullde_type = scrapy.Field()
    house_face = scrapy.Field()
    built_year = scrapy.Field()
    decoration = scrapy.Field()
    bullde_structure = scrapy.Field()
    Heating_method = scrapy.Field()
    Echelon_pro = scrapy.Field()
    elevator = scrapy.Field()
    LJ_num = scrapy.Field()
    ownership = scrapy.Field()
    listed_time = scrapy.Field()
    house_use = scrapy.Field()
    house_years = scrapy.Field()
    property_belo = scrapy.Field()
    house_img = scrapy.Field()
    broker_id = scrapy.Field()

# 租房数据
class RentDataItem(scrapy.Item):
    rent_id = scrapy.Field()
    province = scrapy.Field()
    city_name = scrapy.Field()
    area_name = scrapy.Field()
    shop_name = scrapy.Field()
    title = scrapy.Field()
    community = scrapy.Field()
    maintain_time = scrapy.Field()
    check_code = scrapy.Field()
    payment = scrapy.Field()
    rent_price = scrapy.Field()
    deposit = scrapy.Field()
    service_price = scrapy.Field()
    intermediary_price = scrapy.Field()
    lease_mode = scrapy.Field()
    house_type = scrapy.Field()
    area = scrapy.Field()
    house_face = scrapy.Field()
    check_in = scrapy.Field()
    floor = scrapy.Field()
    elevator = scrapy.Field()
    parklot = scrapy.Field()
    water = scrapy.Field()
    electric = scrapy.Field()
    gas = scrapy.Field()
    heating = scrapy.Field()
    lease_term = scrapy.Field()
    look_house = scrapy.Field()
    house_img = scrapy.Field()
    broker_id = scrapy.Field()


# 新房数据
class NewDataItem(scrapy.Item):
    house_unique = scrapy.Field()
    province = scrapy.Field()
    city_name = scrapy.Field()
    area_name = scrapy.Field()
    shop_name = scrapy.Field()
    house_type = scrapy.Field()
    title = scrapy.Field()
    # contact_mode = scrapy.Field()   # 联系方式已无
    alias = scrapy.Field()
    unit_price = scrapy.Field()
    total_price = scrapy.Field()
    adress = scrapy.Field()
    open_time = scrapy.Field()
    house_img = scrapy.Field()
    proper_type = scrapy.Field()
    house_feature = scrapy.Field()
    sales_office = scrapy.Field()
    developer = scrapy.Field()
    builde_type = scrapy.Field()
    green_rate = scrapy.Field()
    land_area = scrapy.Field()
    volume_rate = scrapy.Field()
    builde_area = scrapy.Field()
    house_plan = scrapy.Field()
    property_years = scrapy.Field()
    handover_time = scrapy.Field()
    property_company = scrapy.Field()
    carbit_ratio = scrapy.Field()
    property_price = scrapy.Field()
    Heating_method = scrapy.Field()
    water = scrapy.Field()
    electric = scrapy.Field()
    carbit_num = scrapy.Field()
    broker_id = scrapy.Field()

# 经纪人
class BorderItem(scrapy.Item):
    broker_id = scrapy.Field()
    broker_name = scrapy.Field()
    contact = scrapy.Field()
    shop_group = scrapy.Field()
    service_years = scrapy.Field()
    personal_score = scrapy.Field()
    broker_img = scrapy.Field()

# 房源特色
# class RoomFeaturesItem(scrapy.Item):
#     house_id = scrapy.Field()
#     name = scrapy.Field()
#     content = scrapy.Field()

